package com.yike.product.convert;

import com.yike.product.entity.Specification;
import com.yike.product.vo.SpecificationVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SpecificationConvert {

    SpecificationConvert INSTANCE = Mappers.getMapper(SpecificationConvert.class);

    SpecificationVo convert(Specification specification);

    List<SpecificationVo> convert(List<Specification> specifications);

}
